import request from '@/utils/request';

// 获取黑名单规则列表
export function listData(query) {
  return request({
    url: `/system-set/black-list/rule${query}`,
    method: 'get',
  });
}

// 添加黑名单规则
export function postAddData(form) {
    return request({
      url: `/system-set/black-list/rule`,
      method: 'post',
      data:form
    });
  }

// 更新黑名单规则
export function putEditData(id,form) {
    return request({
      url: `/system-set/black-list/rule/${id}`,
      method: 'put',
      data:form
    });
  }

// 删除黑名单规则
  export function deleteData(form) {
    return request({
      url: `/system-set/black-list/rule`,
      method: 'delete',
      data:form
    });
  }

// 获取省份列表
export function getProvince() {
    return request({
      url: `/area/province`,
      method: 'get',
    });
  }

// 获取城市列表
export function getCity(query) {
    return request({
      url: `/area/city/get-list-by-province-id${query}`,
      method: 'get',
    });
  }